package com.online.teaching.module.teacher.resource.service;


import org.springframework.web.multipart.MultipartFile;

/**
 * @author yg
 */
public interface TeacherResourceService {
    /**
     * 老师上传文件或者文件夹
     * @param file
     * @param teachesId
     * @param parentId
     * @param userId
     * @return
     */
    int addFile(MultipartFile file,Integer teachesId,Integer parentId,Integer userId);

    /**
     * 老师新增目录
     * @param directoryName
     * @param teachesId
     * @param parentId
     * @param userId
     * @return
     */
    int addDirectory(String directoryName,Integer teachesId,Integer parentId,Integer userId);

    /**
     * 删除目录或者资源
     * @param id
     * @return
     */
    int deleteResource(Integer id);
}
